package dao;

import entity.News;

import java.util.List;

public interface NewsDao {
    //获取News表总数
    public Long newsCount(int type);

    //按type分页检索
    public List<News> selectNewsType(int type, int pageSize, int PageNum, int state);

    public int createNews(News news);

    public News selectByNewsId(String newsId);

    public List<News> selectNewsByUid(int uid, int state);
    public int deleteNews(String newsId);
}
